n = 1

while(a = gets)
	next if /^\s+$/ =~ a
	print a.chomp
	if (n % 12) == 0
		print "\n"
	else
		print ","
	end
	n += 1
end
